package JAVA;

public class work391 {
    public static void main(String[] args) {     //矩形
        for (int i=1;i<=5;i++){
            for (int j=1;j<=5;j++){
                System.out.printf("*");
            }
            System.out.println(" ");
        }
        for (int i=1;i<=5;i++){                      //平行四边形
            for (int j=1;j<=(5-i);j++){
                System.out.print(" ");
            }
            for (int k=1;k<=5;k++){
                System.out.print("*");
            }
            System.out.println( );
        }
        for (int i=1;i<=6;i++){                       //等腰三角形
            for (int j=1;j<=6-i;j++){
                System.out.print(" ");
            }
            for (int k=1;k<=(2*i)-1;k++){
                System.out.print("*");
            }
            System.out.println( );
        }
        for (int i=1;i<=6;i++){                      //菱形
            for (int j=1;j<=6-i;j++){
                System.out.print(" ");
            }
            for (int k=1;k<=(2*i)-1;k++){
                System.out.print("*");
            }
            System.out.println( );
        }
        for (int a=1;a<=5;a++){
            for (int b=1;b<=a;b++){
                System.out.print(" ");
            }
            for (int c=1;c<=9-2*(a-1);c++){
                System.out.print("*");
            }
            System.out.println( );
        }
    }
}
